package com.hzqy.service.epg;

import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hzqy.persistence.dao.epg.AcUserBillDao;
import com.hzqy.persistence.dao.epg.AcProductDao;
import com.hzqy.web.vo.epg.AcUserBillVo;
import com.hzqy.web.vo.epg.ActivityProductVo;

@Service
public class AcProductService {
	@Resource
	private AcProductDao AcProductDao;
	

    public int updateUserBillStatus(AcUserBillVo aub) {
        return AcProductDao.updateUserBillStatus(aub);
    }
	
	public ActivityProductVo selectAcProdectByID(int f_ap_id) {
		if(f_ap_id==0)
			return null;
		return AcProductDao.selectAcProdectByID(f_ap_id);
	}
	public int selectServiceCount(String f_aub_serverid)  {
		if (f_aub_serverid==null || f_aub_serverid=="") {
			return -1;
		}
		int i=0;
		i=AcProductDao.selectByServiceId(f_aub_serverid);
		return i;
	}

	
}
